# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=libwpg
pkgver=0.3.2
pkgrel=1
pkgdesc="Library for importing and converting Corel WordPerfect(tm) Graphics images."
arch=('i686' 'x86_64')
url="https://libwpg.sourceforge.net/"
license=('LGPL')
depends=('libwpd' 'perl' 'librevenge')
makedepends=('doxygen')
source=("https://downloads.sourceforge.net/libwpg/${pkgname}-${pkgver}.tar.xz")
sha1sums=('087125964823c35d711e36034823601a8736eae4')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

check() {
  cd ${pkgname}-${pkgver}
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
